var express = require('express');
var evh = require('express-vhost');
var one = express();
one.get("/", function(req, res) {
    res.send("this is app one");
})
var two = express();
two.get("/", function(req, res) {
    res.send("this is app two");
})
var three = express();
three.get("/", function(req, res) {
    res.send("this is app three");
})

var master_app = express();
master_app.use(evh.vhost());
evh.register('app1', one);
evh.register('app2', two);
evh.register('app3', three);

master_app.listen(8080);
